.showcaseCardImage {
  overflow: hidden;
  height: 150px;
  border-bottom: 2px solid var(--ifm-color-emphasis-200);
  padding: var(--ifm-card-vertical-spacing) var(--ifm-card-horizontal-spacing)!important;
  img {
    object-fit: contain;
    width: 100%;
    height: 100%;
  }
}

.showcaseCardHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.showcaseCardTitle {
  margin-bottom: 0;
  flex: 1 1 auto;
}

.showcaseCardTitle a {
  text-decoration: none;
  background: linear-gradient(
      var(--ifm-color-primary),
      var(--ifm-color-primary)
    )
    0% 100% / 0% 1px no-repeat;
  transition: background-size ease-out 200ms;
}

.showcaseCardTitle a:not(:focus):hover {
  background-size: 100% 1px;
}

.showcaseCardTitle,
.showcaseCardHeader {
  margin-right: 0.25rem;
}

.showcaseCardSrcBtn {
  margin-left: 6px;
  padding-left: 12px;
  padding-right: 12px;
  border: none;
}

.showcaseCardSrcBtn:focus-visible {
  background-color: var(--ifm-color-secondary-dark);
}

[data-theme='dark'] .showcaseCardSrcBtn {
  background-color: var(--ifm-color-emphasis-200) !important;
  color: inherit;
}

[data-theme='dark'] .showcaseCardSrcBtn:hover {
  background-color: var(--ifm-color-emphasis-300) !important;
}

.showcaseCardBody {
  font-size: smaller;
  line-height: 1.66;
  max-height: 10em;
  overflow-y: auto;
}

.cardFooter {
  display: flex;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.675rem;
  border: 1px solid var(--ifm-color-secondary-darkest);
  cursor: default;
  margin-right: 6px;
  margin-bottom: 6px !important;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
}

.tag .textLabel {
  margin-left: 8px;
}

.tag .colorLabel {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-left: 6px;
  margin-right: 6px;
}

.followBtn {
  padding: 4px 12px;
  font-size: 0.8rem;
  border: 1px solid var(--ifm-color-primary);
  background: transparent;
  color: var(--ifm-color-primary);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 60px;
  flex-shrink: 0;
}

.followBtn:hover:not(:disabled) {
  background: var(--ifm-color-primary);
  color: white;
}

/* 已加入状态 - 显示为已完成状态 */
.followBtn.following {
  background: #E6F0FA;
  color: #0078D4;
  border: 1px solid #B3D4F5;
  position: relative;
  padding-left: 24px; /* 为checkmark留出空间 */
}

.followBtn.following:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.followBtn.following::before {
  content: '✓';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  font-size: 0.9rem;
}

/* 加载状态 - 显示处理中状态 */
.followBtn.loading {
  background: var(--ifm-color-warning);
  color: var(--ifm-color-emphasis-800);
  border-color: var(--ifm-color-warning);
  position: relative;
  padding-right: 24px; /* 为spinner留出空间 */
}

.followBtn.loading:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.followBtn.loading::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: var(--ifm-color-emphasis-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
}

@keyframes spin {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

/* 通用禁用状态 */
.followBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
